libtest: make gpghome in tmpdir writeable
authorSimon McVittie <smcv@debian.org>
Sun, 12 Jun 2016 09:51:11 +0000 (10:51 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 13 Jun 2016 00:23:04 +0000 (00:23 +0000)
Otherwise, during "make distcheck" it will be read-only (because it
is a copy of the read-only ${srcdir} with permissions preserved), and
deletion will fail during cleanup.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #337
Approved by: cgwalters

tests/libtest.sh

index 3350cb20fefe80fbedb38e0913d0462528c1e5d1..16d5c0e07fa4a1a0b5231fad9db59ad45891ba8a 100755 (executable)
@@ -69,6 +69,7 @@ export TEST_GPG_KEYID_3="DF444D67"
 # this by copying locally.
 echo "Copying gpghome to ${test_tmpdir}"
 cp -a "${test_srcdir}/gpghome" ${test_tmpdir}
+chmod -R u+w "${test_tmpdir}"
 export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome
 export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted